import os

import pytest

from common.config import report_path, report_html_path

if __name__ == '__main__':
    # 通过alluredir指定生成json格式的报告的路径，同时借助--clean-alluredir生成前清楚该路径下的文件
    pytest.main(["--alluredir",report_path,"--clean-alluredir"])
    # os.system(f"allure generate{report_path} -o {report_html_path} --clean")